<script>
	$(function() {
		
		sagapo.section_class_change('anniversary');
		
		// 게시물 신규 추가.
		$("section.section .btn_right a.writes").click(function() {
			
			var href = $(this).attr("href");
			if(href) {
				loadDialogForm(href, null, $(this).text(), 600, 350, null, 'create');
			} else {
				alert("링크가 존재하지 않습니다.");
			}
			
			return false;
		});
		
	});
</script>
<div class="list_container">
	<ul class="list">
		{? list}
			{@ list}
			<li>
				<a href="{action}/view/{.value_->ay_seq}" class="article">
					<div class="title">
						<h3>
							<span class="name_{.value_->ay_seq} {.value_->name_class}">{.value_->ay_name}</span> 
							<span class="solar_{.value_->ay_seq} {.value_->solar_class}">({.value_->solar})</span>
						</h3>
					</div>
					<div class="description">
						<p class="date">기념일 : <span class="date_{.value_->ay_seq}">{.value_->date}</span></p>
					</div>
				</a>
			</li>
			{/}
		{:}
		<li class="no_article">등록된 기념일이 없습니다.</li>
		{/}
					
	</ul>
	<div class="list_footer">
		<div class="btn_right">
			<a href="{action}/add" class="icon_button writes">기념일 추가</a>
		</div>
	</div>
</div>